package com.leonzhangxf.code.repository;

import com.leonzhangxf.code.domain.AuthCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author leonzhangxf
 */
@Repository
public interface AuthCodeRepository extends JpaRepository<AuthCode, Integer> {

    List<AuthCode> findByEmailOrderByCreateTimeDesc(String email);
}
